package com.ochnas.volunteersignup.service;

import javax.jws.WebService;

import com.ochnas.volunteersignup.domain.Event;
import com.ochnas.volunteersignup.domain.Position;
import com.ochnas.volunteersignup.domain.User;

@WebService
public interface EventWebService {

	String createEventDocLiteral(String xml);
	Long createEventRPC(Event event);
	

	void createPositionForEventDocLiteral(String xml);
	void createPositionForEventRPC(long eventId, String name, String description, int requiredVolunteers);
	
	void registerForPositionRPC(long positionId, long userId);
	
	void registerForPositionAndNotifyRPC(Position p, User user);
	
}
